<form action="fake.php" method="post" enctype="multipart/form-data" name="cmts_form" id="cmts_form">
<input type="hidden" name="function" value="{function}" />
<input type="hidden" name="what" value="{what}" />
<input type="hidden" name="whatid" value="{whatid}" />
<input type="hidden" name="module" value="comments" />
<input type="hidden" id="code" name="code" value="100" />

<table align="center" width="100%" border="0" class="tabelka2">
<?php if(!empty($_GET['error'])) {?>
<tr>
     <td colspan="2" align="center"><b>{error}</b></td>
</tr>
<?}?>

<?php if(!$_SESSION['logged_in']) {?>
<tr>
    <td class="row_1" align="center"><?php echo($GLOBALS['lang']['comments']['name']);?>*</td>
	  <td class="row_1" align="left"><input type="text" maxlength="30" name="who" class="button" size="30" /></td>
</tr>
<tr>
    <td class="row_2" align="center"><?php echo($GLOBALS['lang']['comments']['mail']);?></td>
  	<td class="row_2" align="left"><input type="text" maxlength="30" name="mail" class="button" size="30" /></td>
</tr>
<?}?>
<tr>
   <td class="row_1" align="center"><?php echo($GLOBALS['lang']['comments']['title']);?></td>
	 <td class="row_1" align="left"><input type="text" maxlength="30" name="title" class="button" size="30" /></td>
</tr>
<tr valign="top">
   <td class="row_2" align="center"><?php echo($GLOBALS['lang']['comments']['comment']);?>* <a href="javascript:void();" onclick="javascript:open_popup('help.php?dom_id=text', screenWH('W'), screenWH('H'));"><img src="admin/gfx/help.png" alt="" /></a></td>
	 <td class="row_2" align="left"><textarea cols="30" rows="8" class="button" name="text" id="text"></textarea></td>
</tr>
<tr>
  <td></td>
  <td><input type="button" value="<?php echo($GLOBALS['lang']['comments']['submit']);?>" class="button" id="cmts_submit" onclick="document.getElementById('cmts_form').action='index.php'; getCode('code', 'cmts_form', 'cmts_submit');" /></td>
</tr>
</table>
</form>
